﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Unity;
using BBInterfaceNET.Toolbox.ViewModels;
using BBInterfaceNET.Toolbox.Views;
using ExplorerInfrastructure;
using Microsoft.Practices.Prism.Regions;
using BBInterfaceNET.Toolbox.Services;
using BBInterfaceNET.CommonServices;


namespace BBInterfaceNET.Toolbox.ModuleDefinition
{
    public class ToolboxModule:IModule
    {
        IUnityContainer container;
        public ToolboxModule(IUnityContainer container)
        {
            this.container = container;
        }
        public void Initialize()
        {
            container.RegisterInstance<IToolboxService>(new ToolboxService(container));
            IRegionManager regionManager = container.Resolve<IRegionManager>();
            regionManager.RegisterViewWithRegion("ToolboxRegion", typeof(ToolboxView));
        }
    }
}
